<template>
	<view class="box">
		<view class="top">
			<view class="text-1">订单详情</view>
			<image style="width: 200rpx;height: 130rpx;" mode="aspectFit" src="../../static/success.png"></image>
			<view class="text-2">支付成功</view>
		</view>
		<view class="bot">
			<view class="center">
				<view class="text-3">￥{{info.money}}</view>
				<view class="item">
					<text>订单编号:</text>
					<text>{{info.orderNo}}</text>
				</view>
				<view class="item">
					<text>支付时间:</text>
					<text>{{info.time}}</text>
				</view>
				<view class="item">
					<text>支付方式:</text>
					<text>{{info.type==='wechat'?'微信':'支付宝'}}支付</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: {
					money: '',
					type: '',
					time: '',
					orderNo: ''
				}
			}
		},
		onLoad(options) {
			if(!options.money){
				this.info=uni.getStorageSync('storageInfo')
			}else{
				this.info = {
					money: options.money,
					type: options.type,
					time: options.time,
					orderNo: options.orderNo
				}
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.box {
		height: 100vh;
		font-size: 36rpx;

		.top {
			background: #1DB374;
			height: 35%;
			text-align: center;
			color: #fff;

			.text-1 {
				padding-top: 40rpx;
				margin-bottom: 60rpx;
			}

			.text-2 {
				margin-top: 20rpx;
			}
		}

		.bot {
			height: 65%;
			background-color: RGB(248, 248, 248);
			position: relative;

			.center {
				margin-top: -20rpx;
				background-color: #fff;
				height: 80%;
				border-radius: 20rpx;
				position: absolute;
				top: -40rpx;
				left: 40rpx;
				right: 40rpx;
				padding: 60rpx 45rpx;

				.text-3 {
					font-weight: 400;
					font-size: 60rpx;
					color: #333333;
					line-height: 76rpx;
					text-align: center;
					margin-bottom: 95rpx;
				}

				.item {
					font-size: 28rpx;
					color: #666666;
					line-height: 60rpx;
				}
			}
		}
	}
</style>